package com.fuxue.controller.server;

import com.fuxue.result.Result;
import com.fuxue.service.LittleService;
import com.fuxue.service.impl.LittleServiceImpl;
import com.fuxue.vo.PHVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/users/server/pai")
@Slf4j
@Api(tags = "服务者零碎功能")
public class LittleController {
       @Autowired
       private LittleService littleService;
       @GetMapping("/ByPoint")
       @ApiOperation("按积分排名")
       private Result<List<PHVO>> getPhVO()
       {
              List<PHVO>list = new ArrayList<PHVO>();
           list = littleService.getall();
           return Result.success(list);
       }



}
